package com.javabasic.oop;

public class Unit27Static {
	public static void main(String [] args) {
		int area = 100;
		Room r1 = new Room();
		r1.number = 10;
		System.out.println("R1 number: " + r1.number);
		System.out.println("R1 area before: " + r1.area);
		r1.area = 300;
		System.out.println("R1 area after: " + r1.area);
		Room.area = 400;
		
		Room r2 = new Room();
		r2.number = 20;
		System.out.println("R2 number: " + r2.number);
		System.out.println("R2 area: " + r2.area);
		
		Room.Show();
		Room r3 = new Room();
		r3.number = 30;
		System.out.println("R3 number: " + r3.number);
		System.out.println("R3 area: " + r3.area);
		
	}
	
	public static void show() {
			int area;
	}
}

class Room {
	int number;
	static int area = 200;
	
	public static void Show() {
		int area = 1;
		System.out.println("Show");
		System.out.println(area);
		area = 500;
//		number = 10;
	}
	
	
	
}